pull: Fix theoretical checksum collision for metadata fetches
authorColin Walters <walters@verbum.org>
Thu, 19 Jan 2017 01:56:28 +0000 (20:56 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 19 Jan 2017 10:47:15 +0000 (10:47 +0000)
commitb28b785f01b364baac709e87f99fe2ce20c7914e
tree093bef5663ccadaf80c3b3e52b37b3a03ee1b401
parent2f71136eec7fa6326fb66147664960eb822a066f
pull: Fix theoretical checksum collision for metadata fetches

I was making some other changes in this code, and noticed that we were adding
checksums without object types into the same hash table for metadata. We should
*never* do this with both metadata content objects, since in theory a content
object could have the same hash as metadata.

I don't actually think it's possible in practice for pure metadata to collide,
since they have different structures, but let's do this anyways since it's
conceptually right.

Closes: #651
Approved by: giuseppe
src/libostree/ostree-repo-pull.c